<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改品牌页面</title>
    <!--引入layui-->
    <link rel="stylesheet" th:href="@{/assets/lib/layui/css/layui.css}">
    <script th:src="@{/assets/lib/layui/layui.js}"></script>
    <!--自定义格式-->
    <link rel="stylesheet" th:href="@{/assets/sys/brand/edit.css}">
    <script th:src="@{/assets/sys/brand/edit.js}"></script>

    <!--定义上下文路径-->
    <script th:inline="javascript">
        let ctx = /*[[@{/}]]*/"";//上下文路径
        if (ctx.endsWith("/")) {
            ctx = ctx.substring(0, ctx.length - 1);
        }
        const error = /*[[${error}]]*/"";
        const brand =/*[[${brand}]]*/{};
    </script>
</head>
<body>
<form id="edit-form" class="layui-form" lay-filter="edit-form">
    <div class="layui-form-item">
        <label class="layui-form-label ">品牌名</label>
        <div class="layui-input-block">
            <input type="text" name="name" lay-verify="required" lay-reqtext="品牌名不可为空"
                   placeholder="请输入品牌名" autocomplete="off" class="layui-input ">
        </div>
    </div>

        <div class="layui-form-item">
            <label class="layui-form-label ">LOGO</label>
            <div class="layui-input-block">
                <button type="button" class="layui-btn" id="logo-upload-btn" style="padding: 0 4px">
                     <i class="layui-icon layui-icon-upload" ></i> 图片上传
                 </button>
                <div class="logo-preview" ></div>
            </div>
        </div>
    <div class="layui-form-item">
        <label class="layui-form-label ">所属公司</label>
        <div class="layui-input-block">
            <input type="text" name="company"
                   placeholder="请输入所属公司" autocomplete="off" class="layui-input ">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label ">品牌网址</label>
        <div class="layui-input-block">
            <input type="text" name="site"
                   placeholder="请输入品牌网址" autocomplete="off" class="layui-input ">
        </div>
    </div>

    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <textarea name="description" placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>
    </div>


</form>

</body>
</html>